/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Facade;

import Modelo.DaoQuemaFactory;
import Modelo.DaoQuemaInterface;
import VO.QuemaVO;
import java.util.Vector;
import javax.management.InstanceNotFoundException;
import utiles.exceptions.DataException;
/**
 *
 * @author szuniga
 */
public class QuemaFacade {

    public boolean registrarQuema(QuemaVO nueva)throws Exception, DataException, InstanceNotFoundException {

  	   DaoQuemaInterface dao =(DaoQuemaInterface)DaoQuemaFactory.getDAO();
  	   boolean resultado = dao.registrarQuema(nueva);
       return resultado;
     }

    public Vector cargarRutQuema() throws Exception, DataException, InstanceNotFoundException {

  	   DaoQuemaInterface dao =(DaoQuemaInterface)DaoQuemaFactory.getDAO();
  	   Vector resultado = dao.cargarRutQuema();
       return resultado;
     }

     public Vector listarQuemas() throws Exception, DataException, InstanceNotFoundException {

  	   DaoQuemaInterface dao =(DaoQuemaInterface)DaoQuemaFactory.getDAO();
  	   Vector resultado = dao.listarQuemas();
       return resultado;
     }
}
